
<?php
	function tranghientai()
	{
		//kiem tra nhap trang
		if(isset($_GET['page']))
		{
			$page = $_GET['page'];
		}
		else
		{
			$page = 1;	
		}
		return $page;
	}
	
	function timvitri($page, $somautin)
	{
		$vitri = $somautin *($page -1);
		return $vitri;
	}
	function timsotrang($tongmautin,$somautin)
	{
		$sotrang= $tongmautin/$somautin;
		return $sotrang;
	}
	

?>